package com.framework.admin.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.framework.common.domain.ResultData;
import com.framework.log.param.SysLogParam;
import com.framework.log.service.ISysLogService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@RestController
@RequestMapping("/log")
@Api(value = "log", tags = "日志管理")
public class SysLogController {

    @Autowired
    private ISysLogService sysLogService;
    
	@ApiOperation("获取分页")
    @PostMapping(value = "/listPage")
    public ResultData<?> listPage(@RequestBody(required = false) SysLogParam param) {
        return ResultData.data(sysLogService.listPage(param));
    }
}
